package com.yanxml.spring.history.v1;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class StartApp {
    public static void main(String[] args) {
        ApplicationContext ac = new FileSystemXmlApplicationContext("classpath:config/applicationContext.xml");
//        ApplicationContext ac = new FileSystemXmlApplicationContext("classpath:applicationContext.xml");

//        ApplicationContext ac = new FileSystemXmlApplicationContext("applicationContext.xml");
//        ApplicationContext ac = new FileSystemXmlApplicationContext();

        System.out.println(ac.getBean("userService"));
    }
}
